#ifndef CGprsEmulator_H_
#define CGprsEmulator_H_

//This class is only for testing purposes

#include <es_sock.h>

class CGprsEmulator
{
enum TGprsConnectionProgress 
{
	EGprsIdle,
	EGprsConnected
} ;
	
public:

	static CGprsEmulator* NewL(RSocketServ &aSocketServ);

	CGprsEmulator(RSocketServ &aSocketServ);
	virtual ~CGprsEmulator();
	
	void ConstructL();
	
	TInt OpenConnection();
	void CloseConnection();
	
	/* returns 0 in error */
	void SelectAccessPointL(TUint32& aIap){ aIap = 10; };
	
	void DataTransferredRequest(TUint& iUploadCounter, TUint& iDownloadCounter);
	void DataTransferredRequest(TDes8& iUploadCounter, TDes8& iDownloadCounter);

private:

	RSocketServ& iSocketServ;
	
	
	TGprsConnectionProgress iState;

};


#endif /*CGprsEmulator_H_*/
